<!DOCTYPE html>
<html lang="en">
<head>
    {include file='public/header' /}
	
	<!-- Morris Charts CSS -->
    <link href="__PUBLIC__/admin/vendors/bower_components/morris.js/morris.css" rel="stylesheet" type="text/css"/>
	
	<!-- vector map CSS -->
	<link href="__PUBLIC__/admin/vendors/vectormap/jquery-jvectormap-2.0.2.css" rel="stylesheet" type="text/css"/>
	
	<!-- Calendar CSS -->
	<link href="__PUBLIC__/admin/vendors/bower_components/fullcalendar/dist/fullcalendar.css" rel="stylesheet" type="text/css"/>
		
	<!-- Data table CSS -->
	<link href="__PUBLIC__/admin/vendors/bower_components/datatables/media/css/jquery.dataTables.min.css" rel="stylesheet" type="text/css"/>
	
	<!-- Custom CSS -->
	{include file='public/comn_css' /}
</head>

<body>
	<!--Preloader-->
	<div class="preloader-it">
		<div class="la-anim-1"></div>
	</div>
	<!--/Preloader-->
    <div class="wrapper  theme-5-active pimary-color-blue">
		<!-- Top Menu Items -->
		{include file='public/top_menu' /}
		<!-- /Top Menu Items -->
		
		<!-- Left Sidebar Menu -->
		{include file='public/sidebar' /}
		<!-- /Left Sidebar Menu -->

        <!-- Main Content -->
		<div class="page-wrapper">
            <div class="container-fluid pt-25">
					
				<!-- Row -->
				<div class="row">
					<div class="col-lg-3 col-xs-12">
						<div class="panel panel-default card-view  pa-0">
							<div class="panel-wrapper collapse in">
								<div class="panel-body  pa-0">
									<div class="profile-box">
										<div class="profile-cover-pic">
											<div class="profile-image-overlay"></div>
										</div>
										<div class="profile-info text-center">
											<div class="profile-img-wrap">
												<img class="inline-block mb-10" src="__PUBLIC__/admin/dist/img/default.jpg" alt="user"/>
											</div>	
											<h5 class="block mt-10 mb-5 weight-500 capitalize-font txt-primary"></h5>
											<h6 class="block capitalize-font pb-20">{$adminInfo.username}</h6>
										</div>	
										<div class="social-info">
											<div class="row">
												<div class="col-xs-4 text-center">
													<span class="counts block head-font"><span class="counter-anim">{$article}</span></span>
													<span class="counts-text block">文章总数</span>
												</div>
												<div class="col-xs-4 text-center">
													<span class="counts block head-font"><span class="counter-anim">{$posts}</span></span>
													<span class="counts-text block">已发布文章</span>
												</div>
												<div class="col-xs-4 text-center">
													<span class="counts block head-font"><span class="counter-anim">{$urlPosts}</span></span>
													<span class="counts-text block">已推送文章</span>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
						<div class="panel panel-default card-view">
							<div class="panel-wrapper collapse in">
								<div class="panel-body">
									<table class="table table-bordered">
										<tbody>
										<tr>
											<td>操作系统</td>
											<td>{php}echo PHP_OS;{/php}</td>
										</tr>
										<tr>
											<td>运行环境</td>
											<td>{php}echo $_SERVER['SERVER_SOFTWARE'];{/php}</td>
										</tr>
										<tr>
											<td>PHP版本</td>
											<td>{php}echo PHP_VERSION;{/php}</td>
										</tr>
										<tr>
											<td>PHP运行方式</td>
											<td>{php}echo php_sapi_name();{/php}</td>
										</tr>
										<tr>
											<td>MYSQL版本</td>
											<td>{php}
												$mysql = \think\Db::query("select VERSION() as version");
												$mysql = $mysql[0]['version'];
												$mysql = empty($mysql) ? '未知' : $mysql;
												echo $mysql;
												{/php}
											</td>
										</tr>
										<tr>
											<td>上传附件限制</td>
											<td>{php}echo ini_get('upload_max_filesize');{/php}</td>
										</tr>
										<tr>
											<td>执行时间限制</td>
											<td>{php}echo ini_get('max_execution_time') . "s";{/php}</td>
										</tr>
										<tr>
											<td>剩余空间</td>
											<td>{php}echo round((@disk_free_space(".") / (1024 * 1024)), 2) . 'M';{/php}</td>
										</tr>
										</tbody>
									</table>
								</div>
							</div>
						</div>
					</div>
					<div class="col-lg-3 col-md-6 col-sm-6 col-xs-12">
						<div class="panel panel-default card-view">
							<div class="panel-wrapper collapse in">
								<div class="panel-body">
									<div class="calendar-wrap">
										<div id="calendar_small" class="small-calendar"></div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<!-- /Row -->
			</div>
			<!-- Footer -->
			{include file='public/footer' /}
			<!-- /Footer -->
			
		</div>
        <!-- /Main Content -->

    </div>
    <!-- /#wrapper -->
	
	<!-- JavaScript -->
	
    <!-- jQuery -->
    <script src="__PUBLIC__/admin/vendors/bower_components/jquery/dist/jquery.min.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="__PUBLIC__/admin/vendors/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
	
	<!-- Calender JavaScripts -->
	<script src="__PUBLIC__/admin/vendors/bower_components/moment/min/moment.min.js"></script>
	<script src="__PUBLIC__/admin/vendors/jquery-ui.min.js"></script>
	<script src="__PUBLIC__/admin/vendors/bower_components/fullcalendar/dist/fullcalendar.min.js"></script>
	<script>
        $('#calendar_small').fullCalendar({

            header: {
                left: 'title',
                right: 'prev,next',
            },
            height: 'auto',
            editable: false,
            droppable: false, // this allows things to be dropped onto the calendar
            eventLimit: true,
            monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
            dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
            dayNamesShort: ['日', '一', '二', '三', '四', '五', '六']
        });
	</script>
	
	<!-- Counter Animation JavaScript -->
	<script src="__PUBLIC__/admin/vendors/bower_components/waypoints/lib/jquery.waypoints.min.js"></script>
	<script src="__PUBLIC__/admin/vendors/bower_components/jquery.counterup/jquery.counterup.min.js"></script>
	
	<!-- Data table JavaScript -->
	<script src="__PUBLIC__/admin/vendors/bower_components/datatables/media/js/jquery.dataTables.min.js"></script>
	
	<!-- Slimscroll JavaScript -->
	<script src="__PUBLIC__/admin/dist/js/jquery.slimscroll.js"></script>
	
	<!-- Fancy Dropdown JS -->
	<script src="__PUBLIC__/admin/dist/js/dropdown-bootstrap-extended.js"></script>
	
	<!-- Owl JavaScript -->
	<script src="__PUBLIC__/admin/vendors/bower_components/owl.carousel/dist/owl.carousel.min.js"></script>
	
	<!-- Switchery JavaScript -->
	<script src="__PUBLIC__/admin/vendors/bower_components/switchery/dist/switchery.min.js"></script>
	
	<!-- Spectragram JavaScript -->
	<script src="__PUBLIC__/admin/dist/js/spectragram.min.js"></script>
	
	<!-- Init JavaScript -->
	{include file='public/comn_js' /}
	<script src="__PUBLIC__/admin/dist/js/widgets-data.js"></script>

</body>

</html>
